package com.fan.play.media.common

/**
 * 媒体相关的常量定义
 */
class MediaDefine {
    companion object {

        //无效ID
        const val INVALID_ID = -1

        //视频默认帧率
        const val MediaFrameRate = 25

        //采集类型
        const val DeviceType_Audio = 0
        const val DeviceType_Camera = 1
        const val DeviceType_MP4 = 2
        const val DeviceType_RTMP = 3
        const val DeviceType_RTSP = 4

        //设备状态
        const val DeviceState_None = 0
        const val DeviceState_Init = 1
        const val DeviceState_Start = 2
        const val DeviceState_Stop = 3

        //音视频类型
        const val MediaType_Video = 0b0001
        const val MediaType_Audio = 0b0010

        //媒体原始数据类型
        const val MediaRawType_I420 = 0
        const val MediaRawType_NV12 = 1
        const val MediaRawType_NV21 = 2
        const val MediaRawType_S16 = 3
        const val MediaRawType_S16P = 4

        //旋转角度
        const val VideoRotation_0 = 0
        const val VideoRotation_90 = 90
        const val VideoRotation_180 = 180
        const val VideoRotation_270 = 270

        //音频通道数
        const val AudioChannel_Mono = 1
        const val AudioChannel_Stereo = 2


        //音频采样点数据大小 bit
        const val AudioSamples_8BIT = 8
        const val AudioSamples_16BIT = 16

        //采集设备监听的模块
        const val DeviceModule_Capture = 1
        const val DeviceModule_Preview = 1
        const val DeviceModule_Record = 1
        const val DeviceModule_RTMP = 1
    }
}